package com.dwxt.cdms.dao.yumeng;

import com.dwxt.cdms.entity.yumeng.LocData;
import com.dwxt.cdms.view.wristwatch.LocDataView;
import com.dwxt.cdms.view.wristwatch.MotionTrail;
import com.dwxt.cdms.vo.SelectLocDataVo;
import com.dwxt.cdms.vo.SelectWatchDataVo;
import com.dwxt.cdms.vo.SelectWatchVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface LocDataMapper extends Mapper<LocData> {

    int countLocDataByDevAndTime(LocData locData);

    List<LocDataView> selectLocDataViewByCondition(SelectWatchDataVo selectWatchDataVo);

    int deleteLocDataByCustomerIds(@Param("customerIds") Integer[] customerIds);

    int replaceBindingWatchUser(@Param("customerId") Integer customerId, @Param("deviceIdentity") String deviceIdentity);

    List<MotionTrail> selectLocDataListByCustomerId(SelectLocDataVo selectLocDataVo);

    LocDataView selectLocDataByCustomerId(SelectLocDataVo selectLocDataVo);

    List<LocDataView> selectLocDataViewListByCustomerId(SelectWatchVo selectWatchVo);

    LocDataView selectLocDataViewByCustomerId(Integer customerId);

    List<LocData> selectLocDataListByCustomerIdAndTime(@Param("customerId") Integer customerId, @Param("startTime") String startTime, @Param("endTime") String endTime);
}